package jCross.intel;

import jCross.io.IOUtil;

public class TableData {
	public static final int EMPTY = 0, CHECK = 1, UNCHECK = 2;
	
	public int wd = 0, ht = 0;
	public int[][] data = null;
	
	private static TableData instance = null;
	
	private TableData() {
		wd = IOUtil.wd;
		ht = IOUtil.ht;
		this.data = new int[wd][ht];
	}
	
	public static TableData getInstance() {
		if(instance == null) {
			instance = new TableData();
		}
		
		return instance;
	}
	
	public void setSize(int wd, int ht) {
		this.wd = wd;
		this.ht = ht;
		this.data = new int[wd][ht];
	}
}
